from django.conf.urls import url,include
from booktest import views

urlpatterns = [
    url(r'^static_test$', views.static_test),  # 静态文件
    url(r'^index',views.index),

    url(r'^show_upload', views.show_upload),
    url(r'^upload_handle', views.upload_handle),

    url(r'^show_area(?P<pindex>\d*)', views.show_area), #分页


    url(r'^areas$', views.getAreas), # 省市县下拉选择联动
    url(r'^prov$',views.getProvince), # ajax请求处理页，返回所有省
    url(r'^city<pid>',views.getCity), # ajax请求处理页，返回所有市
    url(r'^dis<pid>',views.getCity), # ajax请求处理页，返回所有县，因为和市所用过程相同，所以使用同一个处理函数city

]
